< previous page page_123 next page >

Page 123
OutputPrecision
OutputPrecision specifies how closely the selected font must match the height, width, escapement, character orientation, pitch, and face you specify. Table 4.3 lists output precision values.
You can use OUT_DEVICE_PRECIS, OUT_RASTER_PRECIS, and OUT_TT_PRECIS to control how the font mapper selects a font when more than one font matches your specifications. For example, suppose you specify the font Helvetica and your system contains both a raster font and a TrueType font named Helvetica. If you set OutputPrecision to OUT_TT_PRECIS, the font mapper selects the TrueType font.
If you specify OUT_TT_ONLY_PRECIS, the font mapper always selects a TrueType font, even if a device or raster font matches the font you specified. In that case, the TrueType font selected may not match your selections very closely.
ClipPrecision
The clipping precision parameter determines how characters that are partially outside the clipping region are clipped. Table 4.4 lists possible values.
When you use fonts with a nonzero escapement, you should add CLIP_LH_ANGLES to the ClipPrecision using the Or operator. For example, to have text clipped one character at a time, you would specify ClipPrecision as CLIP_LH_ANGLES Or CLIP_CHARACTER_PRECIS.
Using CLIP_LH_ANGLES makes different kinds of fonts measure rotations in the same direction. If you do not use CLIP_LH_ANGLES, device fonts will measure rotation counterclockwise, but other fonts may measure rotation clockwise or counterclockwise.
Table 4.3 Font Output Precision Values
CONSTANTVALUE
OUT_DEFAULT_PRECIS0
OUT_DEVICE_PRECIS5
OUT_OUTLINE_PRECIS8
OUT_RASTER_PRECIS6
OUT_STRING_PRECIS1
OUT_STROKE_PRECIS3
OUT_TT_ONLY_PRECIS7
OUT_TT_PRECIS4

 
< previous page page_123 next page >